package com.loren.demo33.listener;

import com.loren.demo33.event.BizEvent;
import com.loren.demo33.event.BizEventListener;
import com.loren.demo33.event.ListenerTopic;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@ListenerTopic("333")
public class MsgHandlerListener implements BizEventListener {

    @Override
    public boolean enable(BizEvent event) {
        return true;
    }

    @Override
    public void onEvent(BizEvent event) {
        log.info("...message...");
    }
}